﻿<%@ Page Language="C#" MasterPageFile="~/PaginaPrincipal.master" AutoEventWireup="true" CodeFile="ACurso.aspx.cs" Inherits="ACurso" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <table border="0" cellpadding="0" cellspacing="0" style="width: 402px; height: 237px">
        <tr>
            <td colspan="2" style="text-align: center">
                <asp:Label ID="Label1" runat="server" Text="Agregar Curso" Font-Size="Larger" Width="356px"></asp:Label></td>
        </tr>
        <tr>
            <td colspan="2">
            </td>
        </tr>
        <tr>
            <td style="width: 100px">
                <asp:Label ID="Label2" runat="server" Text="Comision:" Width="124px"></asp:Label></td>
            <td style="width: 100px">
                <asp:DropDownList ID="ddComision" runat="server" AutoPostBack="True" DataSourceID="odsComision"
                    DataTextField="Descripcion" DataValueField="Descripcion" Width="190px">
                </asp:DropDownList></td>
        </tr>
        <tr>
            <td style="width: 100px">
                <asp:Label ID="Label3" runat="server" Text="Materia:" Width="126px"></asp:Label></td>
            <td style="width: 100px">
                <asp:DropDownList ID="ddMateria" runat="server" DataSourceID="odsMateria" DataTextField="Descripcion"
                    DataValueField="IdMateria" Width="190px">
                </asp:DropDownList></td>
        </tr>
        <tr>
            <td style="width: 100px">
                <asp:Label ID="Label4" runat="server" Text="Año Calendario:" Width="127px"></asp:Label></td>
            <td style="width: 100px">
                <asp:TextBox ID="txtAñoCalendario" runat="server" Width="179px"></asp:TextBox>
                <asp:Label ID="Label6" runat="server" ForeColor="Red" Text="*"></asp:Label></td>
        </tr>
        <tr>
            <td style="width: 100px">
                <asp:Label ID="Label5" runat="server" Text="* campo obligatorio" Width="148px" ForeColor="Red"></asp:Label></td>
            <td style="width: 100px">
            </td>
        </tr>
        <tr>
            <td style="width: 100px">
            </td>
            <td style="width: 100px">
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <asp:Label ID="lblError" runat="server" Width="357px"></asp:Label></td>
        </tr>
        <tr>
            <td style="width: 100px">
            </td>
            <td style="width: 100px">
            </td>
        </tr>
        <tr>
            <td style="width: 100px">
                <asp:Button ID="btnAgregarCurso" runat="server" Text="Agregar" /></td>
            <td style="width: 100px">
                <asp:Button ID="btnAtrasCurso" runat="server" Text="Atras" /></td>
        </tr>
    </table>
    <br />
    <asp:ObjectDataSource ID="odsComision" runat="server" DataObjectTypeName="Entidades.Comision"
        DeleteMethod="eliminarComision" InsertMethod="insertComision" SelectMethod="getComisiones"
        TypeName="Negocio.Comision" UpdateMethod="modificarComision"></asp:ObjectDataSource>
    <br />
    <asp:ObjectDataSource ID="odsMateria" runat="server" DataObjectTypeName="Entidades.Materia"
        DeleteMethod="deleteMateria" InsertMethod="insertMateria" SelectMethod="getMaterias"
        TypeName="Negocio.Materia" UpdateMethod="updateMateria"></asp:ObjectDataSource>
    <br />
</asp:Content>

